//
//  Teacher.m
//  2Notification2
//
//  Created by zhengwei on 2/4/16.
//  Copyright © 2016 zhengwei. All rights reserved.
//

#import "Teacher.h"

@implementation Teacher
-(id)init{
    self = [super init];
    if (self) {
        [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(notifAction) name:@"TESTNOTIF" object:nil];
    }
    return self;
}
-(void)notifAction{
    NSLog(@"teacher 接收");
}
-(void)dealloc{
    [[NSNotificationCenter defaultCenter]removeObserver:self name:@"TESTNOTIF" object:nil];
}
@end
